import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by sToa on 2014/12/17.
 */
@XmlRootElement(name="user")
public class User {

    private String name;
    private String sex;
    private int age;
    private int id;

    public String getName() {
        return name;
    }

    public String getSex() {
        return sex;
    }

    public int getAge() {
        return age;
    }
    @XmlElement
    public void setName(String name) {
        this.name = name;
    }
    @XmlElement
    public void setSex(String sex) {
        this.sex = sex;
    }
    @XmlElement(name="Age")
    public void setAge(int age) {
        this.age = age;
    }

    public int getId() {
        return id;
    }
    @XmlAttribute(name="Id")
    public void setId(int id) {
        this.id = id;
    }
}
